package com.cenntro.common.exception;

public class BizException extends RuntimeException{

	/**
	 * 
	 */
	private static final long serialVersionUId = -8069051867540706350L;
	private Integer errorCode;
	private String message;

    public BizException(Integer errorCode, String message, Throwable throwable){
    	super(message, throwable);
    	this.message = message;
    	this.errorCode = errorCode;
    }

    public BizException(Integer errorCode, String message){
        super(message);
        this.message = message;
        this.errorCode = errorCode;
    }

    public Integer getErrorCode() {
        return errorCode;
    }

    public void setErrorCode(Integer errorCode) {
        this.errorCode = errorCode;
    }

	public String getMessage() {
		return message;
	}

	public void setMessage(String message) {
		this.message = message;
	}
    
    
}
